package com.sg.service.biz.bff.impl;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollectionUtil;
import com.sg.common.util.CommonFunctionHelper;
import com.sg.common.util.RedisUtil;
import com.sg.dto.biz.bff.req.*;
import com.sg.dto.biz.bff.res.*;
import com.sg.dto.integration.app.AnalysisIntegrateThemeContInfoComReqDto;
import com.sg.dto.integration.app.AnalysisIntegrateThemeContInfoComRespDto;
import com.sg.service.biz.bff.CrossTempIntegrateService;
import com.wicket.okrapp.integration.CrossTempIntegrateService;
import com.sg.common.exception.Assert;
import com.wicket.okrcalc.integration.CrossTempIntegrateService;
import com.wicket.okrcalc.integration.dto.*;
import com.wicket.okrframework.integration.InductionRecordService;
import com.wicket.okrframework.integration.dto.*;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.stream.Collectors;

/**
 * @author ：
 * @version 1.0
 * @date ：
 */
@Service
public class CrossTempIntegrateServiceImpl
        implements CrossTempIntegrateService {

    @Resource
    private RedisUtil redisUtil;
    @Resource
    com.sg.service.biz.calc.CrossTempIntegrateService fwCalcCrossTempIntegrateClient;

    @Resource
    com.sg.service.biz.app.CrossTempIntegrateService fwAppCrossTempIntegrateClient;

    @Resource
    com.sg.service.biz.framework.InductionRecordService fwBaseInductionRecordClient;

    /**
     * B4查询目标跨模板整合主题详情(管理)[10132]
     * gen by moon at 8/21/2024, 12:50:16 PM
     */
    @Trace(operationName = "B4查询目标跨模板整合主题详情(管理)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffQueryIntegrateThemeDetailRespDto queryIntegrateThemeDetail(BffQueryIntegrateThemeDetailReqDto reqDto) {


        QueryIntegrateThemeDetailComRespDto queryIntegrateThemeDetailComRespDto_1 = null;
        AnalysisIntegrateThemeContInfoComRespDto analysisIntegrateThemeContInfoComRespDto_1 = null;
        QueryInductionRecordInfoDetailComRespDto queryInductionRecordInfoDetailComRespDto_1 = null;
//步骤0: D4查询目标跨模板整合主题详情(公共) - queryIntegrateThemeDetailCom
        QueryIntegrateThemeDetailComRespDto queryIntegrateThemeDetailComRespDto = null;
        QueryIntegrateThemeDetailComReqDto queryIntegrateThemeDetailComReqDto = new QueryIntegrateThemeDetailComReqDto();
        queryIntegrateThemeDetailComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1979768_1
        if (reqDto != null) {
            queryIntegrateThemeDetailComReqDto.setIntegrateThemeId(reqDto.getIntegrateThemeId());//SimpleFieldAssign//sourceId:1979763_1
        }

        /*D4查询目标跨模板整合主题详情(公共)[10112]   */
        Assert.isNull(queryIntegrateThemeDetailComReqDto.getIntegrateThemeId(), "B4查询目标跨模板整合主题详情(管理)-D4查询目标跨模板整合主题详情(公共)-整合主题ID不能为空", false);
        Assert.isNull(queryIntegrateThemeDetailComReqDto.getSpaceId(), "B4查询目标跨模板整合主题详情(管理)-D4查询目标跨模板整合主题详情(公共)-创建于空间ID不能为空", false);
        queryIntegrateThemeDetailComRespDto = fwCalcCrossTempIntegrateClient.queryIntegrateThemeDetailCom(queryIntegrateThemeDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


        queryIntegrateThemeDetailComRespDto_1 = queryIntegrateThemeDetailComRespDto;

//步骤1: D3分析整合主题内容信息(公共) - analysisIntegrateThemeContInfoCom
        AnalysisIntegrateThemeContInfoComRespDto analysisIntegrateThemeContInfoComRespDto = null;
        if (queryIntegrateThemeDetailComRespDto != null) {
            AnalysisIntegrateThemeContInfoComReqDto analysisIntegrateThemeContInfoComReqDto = new AnalysisIntegrateThemeContInfoComReqDto();
            if (queryIntegrateThemeDetailComRespDto != null) {
                analysisIntegrateThemeContInfoComReqDto.setIntegrateThemeContType(queryIntegrateThemeDetailComRespDto.getIntegrateThemeContType());//SimpleFieldAssign//sourceId:1980759_1
                analysisIntegrateThemeContInfoComReqDto.setIntegrateThemeContId(queryIntegrateThemeDetailComRespDto.getIntegrateThemeContId());//SimpleFieldAssign//sourceId:1980760_1
            }

            /*D3分析整合主题内容信息(公共)[10133]   */
            Assert.isNull(analysisIntegrateThemeContInfoComReqDto.getIntegrateThemeContType(), "B4查询目标跨模板整合主题详情(管理)-D3分析整合主题内容信息(公共)-整合主题内容类型编码不能为空", false);
            Assert.isNull(analysisIntegrateThemeContInfoComReqDto.getIntegrateThemeContId(), "B4查询目标跨模板整合主题详情(管理)-D3分析整合主题内容信息(公共)-整合主题内容ID不能为空", false);
            analysisIntegrateThemeContInfoComRespDto = fwAppCrossTempIntegrateClient.analysisIntegrateThemeContInfoCom(analysisIntegrateThemeContInfoComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            analysisIntegrateThemeContInfoComRespDto_1 = analysisIntegrateThemeContInfoComRespDto;
        }

//步骤2: D1-3查询个人就职记录信息详情（公共） - queryInductionRecordInfoDetailCom
        QueryInductionRecordInfoDetailComRespDto queryInductionRecordInfoDetailComRespDto = null;
        if (queryIntegrateThemeDetailComRespDto != null) {
            QueryInductionRecordInfoDetailComReqDto queryInductionRecordInfoDetailComReqDto = new QueryInductionRecordInfoDetailComReqDto();
            if (queryIntegrateThemeDetailComRespDto != null) {
                queryInductionRecordInfoDetailComReqDto.setInductionRecordId(queryIntegrateThemeDetailComRespDto.getOperationInductionId());//SimpleFieldAssign//sourceId:1979836_1
            }

            /*D1查询操作人就职记录信息详情（公共）[715]   */
            Assert.isNull(queryInductionRecordInfoDetailComReqDto.getInductionRecordId(), "B4查询目标跨模板整合主题详情(管理)-D1查询操作人就职记录信息详情（公共）-就职记录ID不能为空", false);
            queryInductionRecordInfoDetailComRespDto = fwBaseInductionRecordClient.queryInductionRecordInfoDetailCom(queryInductionRecordInfoDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            queryInductionRecordInfoDetailComRespDto_1 = queryInductionRecordInfoDetailComRespDto;
        }

        BffQueryIntegrateThemeDetailRespDto retData = new BffQueryIntegrateThemeDetailRespDto();
        if (queryIntegrateThemeDetailComRespDto_1 != null) {
            retData.setIntegrateThemeId(queryIntegrateThemeDetailComRespDto_1.getIntegrateThemeId());//SimpleFieldAssign//sourceId:1979786_1
            retData.setIntegrateThemeName(queryIntegrateThemeDetailComRespDto_1.getIntegrateThemeName());//SimpleFieldAssign//sourceId:1979787_1
            retData.setIntegrateThemeContType(queryIntegrateThemeDetailComRespDto_1.getIntegrateThemeContType());//SimpleFieldAssign//sourceId:1979788_1
            retData.setIntegrateThemeContId(queryIntegrateThemeDetailComRespDto_1.getIntegrateThemeContId());//SimpleFieldAssign//sourceId:1979789_1
            retData.setUsageSceneTypeCode(queryIntegrateThemeDetailComRespDto_1.getUsageSceneTypeCode());//SimpleFieldAssign//sourceId:1979790_1
            retData.setSubjectLifeCycle(queryIntegrateThemeDetailComRespDto_1.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1979812_1
            retData.setOperationInductionId(queryIntegrateThemeDetailComRespDto_1.getOperationInductionId());//SimpleFieldAssign//sourceId:1979813_1
            retData.setOperateTime(queryIntegrateThemeDetailComRespDto_1.getOperateTime());//SimpleFieldAssign//sourceId:1979814_1
        }
        if (analysisIntegrateThemeContInfoComRespDto_1 != null) {
            retData.setIntegrateThemeContName(analysisIntegrateThemeContInfoComRespDto_1.getIntegrateThemeContName());//SimpleFieldAssign//sourceId:1980762_1
        }
        if (queryInductionRecordInfoDetailComRespDto_1 != null) {
            retData.setOriginalRoleMemberId(queryInductionRecordInfoDetailComRespDto_1.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1979849_1
            retData.setUserId(queryInductionRecordInfoDetailComRespDto_1.getUserId());//SimpleFieldAssign//sourceId:1979850_1
            retData.setUserFace(queryInductionRecordInfoDetailComRespDto_1.getUserFace());//SimpleFieldAssign//sourceId:1979853_1
            retData.setNickName(queryInductionRecordInfoDetailComRespDto_1.getNickName());//SimpleFieldAssign//sourceId:1979852_1
            retData.setIdCardName(queryInductionRecordInfoDetailComRespDto_1.getIdCardName());//SimpleFieldAssign//sourceId:1979851_1
        }


        return retData;
    }

    /**
     * B4新增目标跨模板整合主题(管理)[10117]
     * gen by moon at 8/21/2024, 12:50:09 PM
     */
    @Trace(operationName = "B4新增目标跨模板整合主题(管理)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffAddIntegrateThemeRespDto addIntegrateTheme(BffAddIntegrateThemeReqDto reqDto) {


        AddIntegrateThemeBusinessProcessRespDto addIntegrateThemeBusinessProcessRespDto_1 = null;
//步骤0: D4新增目标跨模板整合主题业务处理 - addIntegrateThemeBusinessProcess
        AddIntegrateThemeBusinessProcessRespDto addIntegrateThemeBusinessProcessRespDto = null;
        AddIntegrateThemeBusinessProcessReqDto addIntegrateThemeBusinessProcessReqDto = new AddIntegrateThemeBusinessProcessReqDto();
        if (reqDto != null) {
            addIntegrateThemeBusinessProcessReqDto.setIntegrateThemeName(reqDto.getIntegrateThemeName());//SimpleFieldAssign//sourceId:1979580_1
            addIntegrateThemeBusinessProcessReqDto.setIntegrateThemeContType(reqDto.getIntegrateThemeContType());//SimpleFieldAssign//sourceId:1979581_1
            addIntegrateThemeBusinessProcessReqDto.setIntegrateThemeContId(reqDto.getIntegrateThemeContId());//SimpleFieldAssign//sourceId:1979582_1
            addIntegrateThemeBusinessProcessReqDto.setUsageSceneTypeCode(reqDto.getUsageSceneTypeCode());//SimpleFieldAssign//sourceId:1979583_1
            addIntegrateThemeBusinessProcessReqDto.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1979584_1
        }

        /*D4新增目标跨模板整合主题业务处理[10113]   */
        Assert.isNull(addIntegrateThemeBusinessProcessReqDto.getIntegrateThemeName(), "B4新增目标跨模板整合主题(管理)-D4新增目标跨模板整合主题业务处理-整合主题名称不能为空", false);
        Assert.isNull(addIntegrateThemeBusinessProcessReqDto.getIntegrateThemeContType(), "B4新增目标跨模板整合主题(管理)-D4新增目标跨模板整合主题业务处理-整合主题内容类型编码不能为空", false);
        Assert.isNull(addIntegrateThemeBusinessProcessReqDto.getIntegrateThemeContId(), "B4新增目标跨模板整合主题(管理)-D4新增目标跨模板整合主题业务处理-整合主题内容ID不能为空", false);
        Assert.isNull(addIntegrateThemeBusinessProcessReqDto.getUsageSceneTypeCode(), "B4新增目标跨模板整合主题(管理)-D4新增目标跨模板整合主题业务处理-使用场景类型编码不能为空", false);
        Assert.isNull(addIntegrateThemeBusinessProcessReqDto.getSubjectLifeCycle(), "B4新增目标跨模板整合主题(管理)-D4新增目标跨模板整合主题业务处理-主体生命周期不能为空", false);
        addIntegrateThemeBusinessProcessRespDto = fwCalcCrossTempIntegrateClient.addIntegrateThemeBusinessProcess(addIntegrateThemeBusinessProcessReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


        addIntegrateThemeBusinessProcessRespDto_1 = addIntegrateThemeBusinessProcessRespDto;

        BffAddIntegrateThemeRespDto retData = new BffAddIntegrateThemeRespDto();
        if (addIntegrateThemeBusinessProcessRespDto_1 != null) {
            retData.setIntegrateThemeId(addIntegrateThemeBusinessProcessRespDto_1.getIntegrateThemeId());//SimpleFieldAssign//sourceId:1979591_1
        }


        return retData;
    }

    /**
     * B4修改目标跨模板整合主题(管理)[10130]
     * gen by moon at 8/21/2024, 12:50:12 PM
     */
    @Trace(operationName = "B4修改目标跨模板整合主题(管理)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffUpdateIntegrateThemeRespDto updateIntegrateTheme(BffUpdateIntegrateThemeReqDto reqDto) {


        //步骤0: D4修改目标跨模板整合主题业务处理 - updateIntegrateThemeBusinessProcess
        UpdateIntegrateThemeBusinessProcessRespDto updateIntegrateThemeBusinessProcessRespDto = null;
        UpdateIntegrateThemeBusinessProcessReqDto updateIntegrateThemeBusinessProcessReqDto = new UpdateIntegrateThemeBusinessProcessReqDto();
        if (reqDto != null) {
            updateIntegrateThemeBusinessProcessReqDto.setIntegrateThemeId(reqDto.getIntegrateThemeId());//SimpleFieldAssign//sourceId:1979737_1
            updateIntegrateThemeBusinessProcessReqDto.setIntegrateThemeName(reqDto.getIntegrateThemeName());//SimpleFieldAssign//sourceId:1979735_1
            updateIntegrateThemeBusinessProcessReqDto.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1979736_1
        }

        /*D4修改目标跨模板整合主题业务处理[10118]   */
        Assert.isNull(updateIntegrateThemeBusinessProcessReqDto.getIntegrateThemeId(), "B4修改目标跨模板整合主题(管理)-D4修改目标跨模板整合主题业务处理-整合主题ID不能为空", false);
        updateIntegrateThemeBusinessProcessRespDto = fwCalcCrossTempIntegrateClient.updateIntegrateThemeBusinessProcess(updateIntegrateThemeBusinessProcessReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


        BffUpdateIntegrateThemeRespDto retData = new BffUpdateIntegrateThemeRespDto();


        return retData;
    }

    /**
     * B4存档目标跨模板整合主题(管理)[10131]
     * gen by moon at 8/22/2024, 12:29:45 AM
     */
    @Trace(operationName = "B4存档目标跨模板整合主题(管理)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffArchiveIntegrateThemeRespDto archiveIntegrateTheme(BffArchiveIntegrateThemeReqDto reqDto) {


        //步骤0: D4修改目标跨模板整合主题(公共) - updateIntegrateThemeCom
        UpdateIntegrateThemeComRespDto updateIntegrateThemeComRespDto = null;
        UpdateIntegrateThemeComReqDto updateIntegrateThemeComReqDto = new UpdateIntegrateThemeComReqDto();
        updateIntegrateThemeComReqDto.setSubjectLifeCycle("ARCHIVING");//sourceId:1979750_1
        updateIntegrateThemeComReqDto.setIsArchive("TRUE");//sourceId:1979751_1
        if (reqDto != null) {
            updateIntegrateThemeComReqDto.setIntegrateThemeId(reqDto.getIntegrateThemeId());//SimpleFieldAssign//sourceId:1979748_1
        }

        /*D4修改目标跨模板整合主题(公共)[10127]   */
        Assert.isNull(updateIntegrateThemeComReqDto.getIntegrateThemeId(), "B4存档目标跨模板整合主题(管理)-D4修改目标跨模板整合主题(公共)-整合主题ID不能为空", false);
        Assert.isNull(updateIntegrateThemeComReqDto.getSubjectLifeCycle(), "B4存档目标跨模板整合主题(管理)-D4修改目标跨模板整合主题(公共)-主体生命周期不能为空", false);
        Assert.isNull(updateIntegrateThemeComReqDto.getIsArchive(), "B4存档目标跨模板整合主题(管理)-D4修改目标跨模板整合主题(公共)-是否存档不能为空", false);
        updateIntegrateThemeComRespDto = fwCalcCrossTempIntegrateClient.updateIntegrateThemeCom(updateIntegrateThemeComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


        BffArchiveIntegrateThemeRespDto retData = new BffArchiveIntegrateThemeRespDto();


        return retData;
    }

    /**
     * B4查询目标跨模板整合主题详情(边界)[10134]
     * gen by moon at 8/21/2024, 2:43:22 PM
     */
    @Trace(operationName = "B4查询目标跨模板整合主题详情(边界)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffQueryIntegrateThemeDetailBorderRespDto queryIntegrateThemeDetailBorder(BffQueryIntegrateThemeDetailBorderReqDto reqDto) {


        QueryIntegrateThemeDetailComRespDto queryIntegrateThemeDetailComRespDto_1 = null;
        AnalysisIntegrateThemeContInfoComRespDto analysisIntegrateThemeContInfoComRespDto_1 = null;
//步骤0: D4查询目标跨模板整合主题详情(公共) - queryIntegrateThemeDetailCom
        QueryIntegrateThemeDetailComRespDto queryIntegrateThemeDetailComRespDto = null;
        QueryIntegrateThemeDetailComReqDto queryIntegrateThemeDetailComReqDto = new QueryIntegrateThemeDetailComReqDto();
        queryIntegrateThemeDetailComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1980768_1
        if (reqDto != null) {
            queryIntegrateThemeDetailComReqDto.setIntegrateThemeId(reqDto.getIntegrateThemeId());//SimpleFieldAssign//sourceId:1980763_1
        }

        /*D4查询目标跨模板整合主题详情(公共)[10112]   */
        Assert.isNull(queryIntegrateThemeDetailComReqDto.getIntegrateThemeId(), "B4查询目标跨模板整合主题详情(边界)-D4查询目标跨模板整合主题详情(公共)-整合主题ID不能为空", false);
        Assert.isNull(queryIntegrateThemeDetailComReqDto.getSpaceId(), "B4查询目标跨模板整合主题详情(边界)-D4查询目标跨模板整合主题详情(公共)-创建于空间ID不能为空", false);
        queryIntegrateThemeDetailComRespDto = fwCalcCrossTempIntegrateClient.queryIntegrateThemeDetailCom(queryIntegrateThemeDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


        queryIntegrateThemeDetailComRespDto_1 = queryIntegrateThemeDetailComRespDto;

//步骤1: D3分析整合主题内容信息(公共) - analysisIntegrateThemeContInfoCom
        AnalysisIntegrateThemeContInfoComRespDto analysisIntegrateThemeContInfoComRespDto = null;
        if (queryIntegrateThemeDetailComRespDto != null) {
            AnalysisIntegrateThemeContInfoComReqDto analysisIntegrateThemeContInfoComReqDto = new AnalysisIntegrateThemeContInfoComReqDto();
            if (queryIntegrateThemeDetailComRespDto != null) {
                analysisIntegrateThemeContInfoComReqDto.setIntegrateThemeContType(queryIntegrateThemeDetailComRespDto.getIntegrateThemeContType());//SimpleFieldAssign//sourceId:1980783_1
                analysisIntegrateThemeContInfoComReqDto.setIntegrateThemeContId(queryIntegrateThemeDetailComRespDto.getIntegrateThemeContId());//SimpleFieldAssign//sourceId:1980784_1
            }

            /*D3分析整合主题内容信息(公共)[10133]   */
            Assert.isNull(analysisIntegrateThemeContInfoComReqDto.getIntegrateThemeContType(), "B4查询目标跨模板整合主题详情(边界)-D3分析整合主题内容信息(公共)-整合主题内容类型编码不能为空", false);
            Assert.isNull(analysisIntegrateThemeContInfoComReqDto.getIntegrateThemeContId(), "B4查询目标跨模板整合主题详情(边界)-D3分析整合主题内容信息(公共)-整合主题内容ID不能为空", false);
            analysisIntegrateThemeContInfoComRespDto = fwAppCrossTempIntegrateClient.analysisIntegrateThemeContInfoCom(analysisIntegrateThemeContInfoComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            analysisIntegrateThemeContInfoComRespDto_1 = analysisIntegrateThemeContInfoComRespDto;
        }

        BffQueryIntegrateThemeDetailBorderRespDto retData = new BffQueryIntegrateThemeDetailBorderRespDto();
        if (queryIntegrateThemeDetailComRespDto_1 != null) {
            retData.setIntegrateThemeId(queryIntegrateThemeDetailComRespDto_1.getIntegrateThemeId());//SimpleFieldAssign//sourceId:1980779_1
            retData.setIntegrateThemeName(queryIntegrateThemeDetailComRespDto_1.getIntegrateThemeName());//SimpleFieldAssign//sourceId:1980780_1
            retData.setIntegrateThemeContType(queryIntegrateThemeDetailComRespDto_1.getIntegrateThemeContType());//SimpleFieldAssign//sourceId:1980782_1
            retData.setIntegrateThemeContId(queryIntegrateThemeDetailComRespDto_1.getIntegrateThemeContId());//SimpleFieldAssign//sourceId:1980781_1
        }
        if (analysisIntegrateThemeContInfoComRespDto_1 != null) {
            retData.setIntegrateThemeContName(analysisIntegrateThemeContInfoComRespDto_1.getIntegrateThemeContName());//SimpleFieldAssign//sourceId:1980786_1
        }


        return retData;
    }

    /**
     * B4查询目标跨模板整合主题列表(管理)[10135]
     * gen by moon at 8/21/2024, 2:43:34 PM
     */
    @Trace(operationName = "B4查询目标跨模板整合主题列表(管理)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffQueryIntegrateThemeListRespDto queryIntegrateThemeList(BffQueryIntegrateThemeListReqDto reqDto) {


        QueryFuzzyIntegrateThemeListComRespDto queryFuzzyIntegrateThemeListComRespDto_1 = null;
        BatchQueryInductionRecordListComRespDto batchQueryInductionRecordListComRespDto_1 = null;
//步骤0: D4模糊查目标跨模板整合主题列表(公共) - queryFuzzyIntegrateThemeListCom
        QueryFuzzyIntegrateThemeListComRespDto queryFuzzyIntegrateThemeListComRespDto = null;
        QueryFuzzyIntegrateThemeListComReqDto queryFuzzyIntegrateThemeListComReqDto = new QueryFuzzyIntegrateThemeListComReqDto();
        queryFuzzyIntegrateThemeListComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1980817_1
        if (reqDto != null) {
            queryFuzzyIntegrateThemeListComReqDto.setIntegrateThemeName(reqDto.getIntegrateThemeName());//SimpleFieldAssign//sourceId:1980811_1
            queryFuzzyIntegrateThemeListComReqDto.setIntegrateThemeContType(reqDto.getIntegrateThemeContType());//SimpleFieldAssign//sourceId:1980812_1
            queryFuzzyIntegrateThemeListComReqDto.setUsageSceneTypeCode(reqDto.getUsageSceneTypeCode());//SimpleFieldAssign//sourceId:1980814_1
            queryFuzzyIntegrateThemeListComReqDto.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:1980816_1
        }

        /*D4模糊查目标跨模板整合主题列表(公共)[10137]   */
        Assert.isNull(queryFuzzyIntegrateThemeListComReqDto.getIsArchive(), "B4查询目标跨模板整合主题列表(管理)-D4模糊查目标跨模板整合主题列表(公共)-是否存档不能为空", false);
        Assert.isNull(queryFuzzyIntegrateThemeListComReqDto.getSpaceId(), "B4查询目标跨模板整合主题列表(管理)-D4模糊查目标跨模板整合主题列表(公共)-创建于空间ID不能为空", false);
        queryFuzzyIntegrateThemeListComRespDto = fwCalcCrossTempIntegrateClient.queryFuzzyIntegrateThemeListCom(queryFuzzyIntegrateThemeListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


        queryFuzzyIntegrateThemeListComRespDto_1 = queryFuzzyIntegrateThemeListComRespDto;

//步骤1: D1-3批量查询就职记录列表（公共） - batchQueryInductionRecordListCom
        BatchQueryInductionRecordListComRespDto batchQueryInductionRecordListComRespDto = null;
        if (queryFuzzyIntegrateThemeListComRespDto != null) {
            BatchQueryInductionRecordListComReqDto batchQueryInductionRecordListComReqDto = new BatchQueryInductionRecordListComReqDto();
            if (queryFuzzyIntegrateThemeListComRespDto != null && queryFuzzyIntegrateThemeListComRespDto.getIntegrateThemeList() != null && !CollectionUtil.isEmpty(queryFuzzyIntegrateThemeListComRespDto.getIntegrateThemeList())) {
                batchQueryInductionRecordListComReqDto.setPerOrgInductionRecordList(queryFuzzyIntegrateThemeListComRespDto.getIntegrateThemeList().stream().map(item -> item.getOperationInductionId())
                        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1980825_1
            }

            /*D1-3批量查询就职记录列表（公共）[602]   */

            batchQueryInductionRecordListComRespDto = fwBaseInductionRecordClient.batchQueryInductionRecordListCom(batchQueryInductionRecordListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


            batchQueryInductionRecordListComRespDto_1 = batchQueryInductionRecordListComRespDto;
        }

        BffQueryIntegrateThemeListRespDto retData = new BffQueryIntegrateThemeListRespDto();
        //数据集融合  MoreListToOneSource
        if (queryFuzzyIntegrateThemeListComRespDto_1 != null && !CollectionUtil.isEmpty(queryFuzzyIntegrateThemeListComRespDto_1.getIntegrateThemeList())) {
            for (IntegrateThemeDto integrateThemeDto : queryFuzzyIntegrateThemeListComRespDto_1.getIntegrateThemeList()) {
                BffIntegrateThemeDto retElm = new BffIntegrateThemeDto();
                if (queryFuzzyIntegrateThemeListComRespDto_1 != null) {
                    retElm.setIntegrateThemeId(integrateThemeDto.getIntegrateThemeId());//SimpleFieldAssign//sourceId:409494_2
                    retElm.setIntegrateThemeName(integrateThemeDto.getIntegrateThemeName());//SimpleFieldAssign//sourceId:409495_2
                    retElm.setIntegrateThemeContType(integrateThemeDto.getIntegrateThemeContType());//SimpleFieldAssign//sourceId:409496_2
                    retElm.setUsageSceneTypeCode(integrateThemeDto.getUsageSceneTypeCode());//SimpleFieldAssign//sourceId:409498_2
                    retElm.setSubjectLifeCycle(integrateThemeDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:409499_2
                    retElm.setOperationInductionId(integrateThemeDto.getOperationInductionId());//SimpleFieldAssign//sourceId:409500_2
                    retElm.setOperateTime(integrateThemeDto.getOperateTime());//SimpleFieldAssign//sourceId:409501_2
                }
                retData.getIntegrateThemeList().add(retElm);
                if (batchQueryInductionRecordListComRespDto_1 != null) {
                    for (PerOrgInductionRecordDto perOrgInductionRecordDto : batchQueryInductionRecordListComRespDto_1.getPerOrgInductionRecordList()) {
                        if (perOrgInductionRecordDto.getInductionRecordId().equals(integrateThemeDto.getOperationInductionId())) {
                            if (batchQueryInductionRecordListComRespDto_1 != null) {
                                retElm.setUserFace(perOrgInductionRecordDto.getUserFace());//SimpleFieldAssign//sourceId:409517_2
                                retElm.setIdCardName(perOrgInductionRecordDto.getIdCardName());//SimpleFieldAssign//sourceId:409518_2
                                retElm.setNickName(perOrgInductionRecordDto.getNickName());//SimpleFieldAssign//sourceId:409519_2
                            }
                        }
                    }
                }

            }
        }//sourceId:1980824_1


        return retData;
    }

    /**
     * B4查询目标跨模板整合主题列表(边界)[10138]
     * gen by moon at 8/21/2024, 2:43:42 PM
     */
    @Trace(operationName = "B4查询目标跨模板整合主题列表(边界)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffQueryIntegrateThemeListBorderRespDto queryIntegrateThemeListBorder(BffQueryIntegrateThemeListBorderReqDto reqDto) {


        QueryFuzzyIntegrateThemeListComRespDto queryFuzzyIntegrateThemeListComRespDto_1 = null;
//步骤0: D4模糊查目标跨模板整合主题列表(公共) - queryFuzzyIntegrateThemeListCom
        QueryFuzzyIntegrateThemeListComRespDto queryFuzzyIntegrateThemeListComRespDto = null;
        QueryFuzzyIntegrateThemeListComReqDto queryFuzzyIntegrateThemeListComReqDto = new QueryFuzzyIntegrateThemeListComReqDto();
        queryFuzzyIntegrateThemeListComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1980832_1
        queryFuzzyIntegrateThemeListComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1980834_1
        if (reqDto != null) {
            queryFuzzyIntegrateThemeListComReqDto.setIntegrateThemeContId(reqDto.getIntegrateThemeContId());//SimpleFieldAssign//sourceId:1980830_1
            queryFuzzyIntegrateThemeListComReqDto.setIntegrateThemeContType(reqDto.getIntegrateThemeContType());//SimpleFieldAssign//sourceId:1980829_1
            queryFuzzyIntegrateThemeListComReqDto.setUsageSceneTypeCode(reqDto.getUsageSceneTypeCode());//SimpleFieldAssign//sourceId:1980831_1
        }

        /*D4模糊查目标跨模板整合主题列表(公共)[10137]   */
        Assert.isNull(queryFuzzyIntegrateThemeListComReqDto.getSubjectLifeCycle(), "B4查询目标跨模板整合主题列表(边界)-D4模糊查目标跨模板整合主题列表(公共)-主体生命周期不能为空", false);
        Assert.isNull(queryFuzzyIntegrateThemeListComReqDto.getSpaceId(), "B4查询目标跨模板整合主题列表(边界)-D4模糊查目标跨模板整合主题列表(公共)-创建于空间ID不能为空", false);
        queryFuzzyIntegrateThemeListComRespDto = fwCalcCrossTempIntegrateClient.queryFuzzyIntegrateThemeListCom(queryFuzzyIntegrateThemeListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


        queryFuzzyIntegrateThemeListComRespDto_1 = queryFuzzyIntegrateThemeListComRespDto;

        BffQueryIntegrateThemeListBorderRespDto retData = new BffQueryIntegrateThemeListBorderRespDto();
        if (queryFuzzyIntegrateThemeListComRespDto_1 != null) {
            retData.setIntegrateThemeList(queryFuzzyIntegrateThemeListComRespDto_1.getIntegrateThemeList().stream().map(item -> BeanUtil.toBean(item, BffIntegrateThemeDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1980839_1
        }


        return retData;
    }

    /**
     * B4查询跨模板单数据点详请[10182]
     * gen by moon at 8/26/2024, 1:32:32 PM
     */
    @Trace(operationName = "B4查询跨模板单数据点详请")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffQueryCrossTempSingleDataDetailRespDto queryCrossTempSingleDataDetail(BffQueryCrossTempSingleDataDetailReqDto reqDto) {


        QueryCrossTempSingleDataDetailRespDto queryCrossTempSingleDataDetailRespDto_1 = null;
//步骤0: D4查询跨模板单数据点详请 - queryCrossTempSingleDataDetail
        QueryCrossTempSingleDataDetailRespDto queryCrossTempSingleDataDetailRespDto = null;
        QueryCrossTempSingleDataDetailReqDto queryCrossTempSingleDataDetailReqDto = new QueryCrossTempSingleDataDetailReqDto();
        if (reqDto != null) {
            queryCrossTempSingleDataDetailReqDto.setDataBelongSubjectId(reqDto.getDataBelongSubjectId());//SimpleFieldAssign//sourceId:1987275_1
            queryCrossTempSingleDataDetailReqDto.setDataType(reqDto.getDataType());//SimpleFieldAssign//sourceId:1987276_1
            queryCrossTempSingleDataDetailReqDto.setDataTypeSubScene(reqDto.getDataTypeSubScene());//SimpleFieldAssign//sourceId:1987277_1
            queryCrossTempSingleDataDetailReqDto.setExtendedField1(reqDto.getExtendedField1());//SimpleFieldAssign//sourceId:1987278_1
            queryCrossTempSingleDataDetailReqDto.setIntegrateThemeId(reqDto.getIntegrateThemeId());//SimpleFieldAssign//sourceId:1987279_1
            queryCrossTempSingleDataDetailReqDto.setIsWorkCycleData(reqDto.getIsWorkCycleData());//SimpleFieldAssign//sourceId:1987280_1
            queryCrossTempSingleDataDetailReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1987281_1
        }

        /*D4查询跨模板单数据点详请[10181]   */
        Assert.isNull(queryCrossTempSingleDataDetailReqDto.getDataBelongSubjectId(), "B4查询跨模板单数据点详请-D4查询跨模板单数据点详请-数据归属主体ID不能为空", false);
        Assert.isNull(queryCrossTempSingleDataDetailReqDto.getDataType(), "B4查询跨模板单数据点详请-D4查询跨模板单数据点详请-数据点类型不能为空", false);
        Assert.isNull(queryCrossTempSingleDataDetailReqDto.getDataTypeSubScene(), "B4查询跨模板单数据点详请-D4查询跨模板单数据点详请-数据点子场景不能为空", false);
        Assert.isNull(queryCrossTempSingleDataDetailReqDto.getIntegrateThemeId(), "B4查询跨模板单数据点详请-D4查询跨模板单数据点详请-关联整合主题ID不能为空", false);
        queryCrossTempSingleDataDetailRespDto = fwCalcCrossTempIntegrateClient.queryCrossTempSingleDataDetail(queryCrossTempSingleDataDetailReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


        queryCrossTempSingleDataDetailRespDto_1 = queryCrossTempSingleDataDetailRespDto;

        BffQueryCrossTempSingleDataDetailRespDto retData = new BffQueryCrossTempSingleDataDetailRespDto();
        if (queryCrossTempSingleDataDetailRespDto_1 != null) {
            retData.setSingleWorkCycleDataId(queryCrossTempSingleDataDetailRespDto_1.getSingleWorkCycleDataId());//SimpleFieldAssign//sourceId:1987304_1
            retData.setDataResultId(queryCrossTempSingleDataDetailRespDto_1.getDataResultId());//SimpleFieldAssign//sourceId:1987305_1
            retData.setDataResult(queryCrossTempSingleDataDetailRespDto_1.getDataResult());//SimpleFieldAssign//sourceId:1987306_1
            retData.setUnit(queryCrossTempSingleDataDetailRespDto_1.getUnit());//SimpleFieldAssign//sourceId:1987307_1
            retData.setParentDataResultId(queryCrossTempSingleDataDetailRespDto_1.getParentDataResultId());//SimpleFieldAssign//sourceId:1987308_1
            retData.setParentDataResult(queryCrossTempSingleDataDetailRespDto_1.getParentDataResult());//SimpleFieldAssign//sourceId:1987309_1
            retData.setChangeFromLastValue(queryCrossTempSingleDataDetailRespDto_1.getChangeFromLastValue());//SimpleFieldAssign//sourceId:1987310_1
            retData.setChangeFromLastRatio(queryCrossTempSingleDataDetailRespDto_1.getChangeFromLastRatio());//SimpleFieldAssign//sourceId:1987311_1
            retData.setUpdateCycleParentDataResultId(queryCrossTempSingleDataDetailRespDto_1.getUpdateCycleParentDataResultId());//SimpleFieldAssign//sourceId:1987312_1
            retData.setUpdateCycleParentDataResult(queryCrossTempSingleDataDetailRespDto_1.getUpdateCycleParentDataResult());//SimpleFieldAssign//sourceId:1987313_1
            retData.setUpdateCycleChangeFromLastValue(queryCrossTempSingleDataDetailRespDto_1.getUpdateCycleChangeFromLastValue());//SimpleFieldAssign//sourceId:1987314_1
            retData.setUpdateCycleChangeFromLastRatio(queryCrossTempSingleDataDetailRespDto_1.getUpdateCycleChangeFromLastRatio());//SimpleFieldAssign//sourceId:1987315_1
            retData.setDataType(queryCrossTempSingleDataDetailRespDto_1.getDataType());//SimpleFieldAssign//sourceId:1987316_1
            retData.setDataTypeSubScene(queryCrossTempSingleDataDetailRespDto_1.getDataTypeSubScene());//SimpleFieldAssign//sourceId:1987317_1
            retData.setExtendedField1(queryCrossTempSingleDataDetailRespDto_1.getExtendedField1());//SimpleFieldAssign//sourceId:1987318_1
        }


        return retData;
    }

    /**
     * B4查询跨模板多数据点列表[10184]
     * gen by moon at 8/26/2024, 1:32:43 PM
     */
    @Trace(operationName = "B4查询跨模板多数据点列表")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffQueryCrossTempMultipleDatasListRespDto queryCrossTempMultipleDatasList(BffQueryCrossTempMultipleDatasListReqDto reqDto) {


        QueryCrossTempMultipleDatasListRespDto queryCrossTempMultipleDatasListRespDto_1 = null;
//步骤0: D4查询跨模板多数据点列表 - queryCrossTempMultipleDatasList
        QueryCrossTempMultipleDatasListRespDto queryCrossTempMultipleDatasListRespDto = null;
        QueryCrossTempMultipleDatasListReqDto queryCrossTempMultipleDatasListReqDto = new QueryCrossTempMultipleDatasListReqDto();
        queryCrossTempMultipleDatasListReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1987359_1
        queryCrossTempMultipleDatasListReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1987360_1
        if (reqDto != null) {
            queryCrossTempMultipleDatasListReqDto.setDataBelongSubjectType(reqDto.getDataBelongSubjectType());//SimpleFieldAssign//sourceId:1987350_1
            queryCrossTempMultipleDatasListReqDto.setDataBelongSubjectId(reqDto.getDataBelongSubjectId());//SimpleFieldAssign//sourceId:1987351_1
            queryCrossTempMultipleDatasListReqDto.setDataType(reqDto.getDataType());//SimpleFieldAssign//sourceId:1987354_1
            queryCrossTempMultipleDatasListReqDto.setDataTypeSubScene(reqDto.getDataTypeSubScene());//SimpleFieldAssign//sourceId:1987355_1
            queryCrossTempMultipleDatasListReqDto.setExtendedField1(reqDto.getExtendedField1());//SimpleFieldAssign//sourceId:1987356_1
            queryCrossTempMultipleDatasListReqDto.setIntegrateThemeId(reqDto.getIntegrateThemeId());//SimpleFieldAssign//sourceId:1987357_1
            queryCrossTempMultipleDatasListReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1987358_1
        }

        /*D4查询跨模板多数据点列表[10183]   */
        Assert.isNull(queryCrossTempMultipleDatasListReqDto.getIntegrateThemeId(), "B4查询跨模板多数据点列表-D4查询跨模板多数据点列表-关联整合主题ID不能为空", false);
        Assert.isNull(queryCrossTempMultipleDatasListReqDto.getSubjectLifeCycle(), "B4查询跨模板多数据点列表-D4查询跨模板多数据点列表-主体生命周期不能为空", false);
        Assert.isNull(queryCrossTempMultipleDatasListReqDto.getSpaceId(), "B4查询跨模板多数据点列表-D4查询跨模板多数据点列表-创建于空间ID不能为空", false);
        queryCrossTempMultipleDatasListRespDto = fwCalcCrossTempIntegrateClient.queryCrossTempMultipleDatasList(queryCrossTempMultipleDatasListReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


        queryCrossTempMultipleDatasListRespDto_1 = queryCrossTempMultipleDatasListRespDto;

        BffQueryCrossTempMultipleDatasListRespDto retData = new BffQueryCrossTempMultipleDatasListRespDto();
        if (queryCrossTempMultipleDatasListRespDto_1 != null) {
            retData.setTargetEvaluationCrossDataList(queryCrossTempMultipleDatasListRespDto_1.getTargetEvaluationCrossDataList().stream().map(item -> BeanUtil.toBean(item, BffTargetEvaluationCrossDataDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1987370_1
        }


        return retData;
    }

    /**
     * B4批量查询跨模板多数据点列表[10186]
     * gen by moon at 8/28/2024, 1:51:42 AM
     */
    @Trace(operationName = "B4批量查询跨模板多数据点列表")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffBatchQueryCrossTempMultipleDatasRespDto batchQueryCrossTempMultipleDatas(BffBatchQueryCrossTempMultipleDatasReqDto reqDto) {


        BatchQueryCrossTempMultipleDatasRespDto batchQueryCrossTempMultipleDatasRespDto_1 = null;
//步骤0: D4批量查询跨模板多数据点 - batchQueryCrossTempMultipleDatas
        BatchQueryCrossTempMultipleDatasRespDto batchQueryCrossTempMultipleDatasRespDto = null;
        BatchQueryCrossTempMultipleDatasReqDto batchQueryCrossTempMultipleDatasReqDto = new BatchQueryCrossTempMultipleDatasReqDto();
        if (reqDto != null) {
            batchQueryCrossTempMultipleDatasReqDto.setDataTypeSubScene(reqDto.getDataTypeSubScene());//SimpleFieldAssign//sourceId:1987670_1
            batchQueryCrossTempMultipleDatasReqDto.setExtendedField1(reqDto.getExtendedField1());//SimpleFieldAssign//sourceId:1987671_1
            batchQueryCrossTempMultipleDatasReqDto.setDataBelongSubjectType(reqDto.getDataBelongSubjectType());//SimpleFieldAssign//sourceId:1987672_1
            batchQueryCrossTempMultipleDatasReqDto.setDataBelongSubjectId(reqDto.getDataBelongSubjectId());//SimpleFieldAssign//sourceId:1987673_1
            batchQueryCrossTempMultipleDatasReqDto.setIntegrateThemeContId(reqDto.getIntegrateThemeContId());//SimpleFieldAssign//sourceId:1987674_1
            batchQueryCrossTempMultipleDatasReqDto.setIsWorkCycleData(reqDto.getIsWorkCycleData());//SimpleFieldAssign//sourceId:1987675_1
            batchQueryCrossTempMultipleDatasReqDto.setParentSubMidCycleType(reqDto.getParentSubMidCycleType());//SimpleFieldAssign//sourceId:1987676_1
            batchQueryCrossTempMultipleDatasReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1987678_1
        }

        /*D4批量查询跨模板多数据点[10185]   */
        Assert.isNull(batchQueryCrossTempMultipleDatasReqDto.getDataBelongSubjectType(), "B4批量查询跨模板多数据点列表-D4批量查询跨模板多数据点-数据归属主体类型编码不能为空", false);
        batchQueryCrossTempMultipleDatasRespDto = fwCalcCrossTempIntegrateClient.batchQueryCrossTempMultipleDatas(batchQueryCrossTempMultipleDatasReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


        batchQueryCrossTempMultipleDatasRespDto_1 = batchQueryCrossTempMultipleDatasRespDto;

        BffBatchQueryCrossTempMultipleDatasRespDto retData = new BffBatchQueryCrossTempMultipleDatasRespDto();
        if (batchQueryCrossTempMultipleDatasRespDto_1 != null) {
            retData.setTargetEvaluationCrossDataList(batchQueryCrossTempMultipleDatasRespDto_1.getTargetEvaluationCrossDataList().stream().map(item -> BeanUtil.toBean(item, BffTargetEvaluationCrossDataDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1987716_1
        }


        return retData;
    }

    /**
     * B4查询目标跨模板数据范围列表[10193]
     * gen by moon at 8/28/2024, 1:51:49 AM
     */
    @Trace(operationName = "B4查询目标跨模板数据范围列表")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffQueryTargetEvaluationCrossDataListRespDto queryTargetEvaluationCrossDataList(BffQueryTargetEvaluationCrossDataListReqDto reqDto) {


        QueryTargetEvaluationCrossDataListComRespDto queryTargetEvaluationCrossDataListComRespDto_1 = null;
//步骤0: D4查询目标跨模板数据范围列表(公共) - queryTargetEvaluationCrossDataListCom
        QueryTargetEvaluationCrossDataListComRespDto queryTargetEvaluationCrossDataListComRespDto = null;
        QueryTargetEvaluationCrossDataListComReqDto queryTargetEvaluationCrossDataListComReqDto = new QueryTargetEvaluationCrossDataListComReqDto();
        queryTargetEvaluationCrossDataListComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1989038_1
        queryTargetEvaluationCrossDataListComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1989039_1
        if (reqDto != null) {
            queryTargetEvaluationCrossDataListComReqDto.setDataBelongSubjectId(reqDto.getDataBelongSubjectId());//SimpleFieldAssign//sourceId:1989027_1
            queryTargetEvaluationCrossDataListComReqDto.setDataType(reqDto.getDataType());//SimpleFieldAssign//sourceId:1989030_1
            queryTargetEvaluationCrossDataListComReqDto.setDataTypeSubScene(reqDto.getDataTypeSubScene());//SimpleFieldAssign//sourceId:1989031_1
            queryTargetEvaluationCrossDataListComReqDto.setExtendedField1(reqDto.getExtendedField1());//SimpleFieldAssign//sourceId:1989032_1
            queryTargetEvaluationCrossDataListComReqDto.setIntegrateThemeId(reqDto.getIntegrateThemeId());//SimpleFieldAssign//sourceId:1989033_1
            queryTargetEvaluationCrossDataListComReqDto.setCycleId(reqDto.getCycleId());//SimpleFieldAssign//sourceId:1989036_1
        }

        /*D4查询目标跨模板数据范围列表(公共)[10152]   */
        Assert.isNull(queryTargetEvaluationCrossDataListComReqDto.getIntegrateThemeId(), "B4查询目标跨模板数据范围列表-D4查询目标跨模板数据范围列表(公共)-关联整合主题ID不能为空", false);
        Assert.isNull(queryTargetEvaluationCrossDataListComReqDto.getSubjectLifeCycle(), "B4查询目标跨模板数据范围列表-D4查询目标跨模板数据范围列表(公共)-主体生命周期不能为空", false);
        Assert.isNull(queryTargetEvaluationCrossDataListComReqDto.getSpaceId(), "B4查询目标跨模板数据范围列表-D4查询目标跨模板数据范围列表(公共)-创建于空间ID不能为空", false);
        queryTargetEvaluationCrossDataListComRespDto = fwCalcCrossTempIntegrateClient.queryTargetEvaluationCrossDataListCom(queryTargetEvaluationCrossDataListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


        queryTargetEvaluationCrossDataListComRespDto_1 = queryTargetEvaluationCrossDataListComRespDto;

        BffQueryTargetEvaluationCrossDataListRespDto retData = new BffQueryTargetEvaluationCrossDataListRespDto();
        if (queryTargetEvaluationCrossDataListComRespDto_1 != null) {
            retData.setTargetEvaluationCrossDataList(queryTargetEvaluationCrossDataListComRespDto_1.getTargetEvaluationCrossDataList().stream().map(item -> BeanUtil.toBean(item, BffTargetEvaluationCrossDataDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1989049_1
        }


        return retData;
    }

    /**
     * B4执行跨模板提取并整合标准数据[10201]
     * gen by moon at 8/29/2024, 6:53:09 PM
     */
    @Trace(operationName = "B4执行跨模板提取并整合标准数据")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffImplementCrossTempExtractAndIntegrateDatasRespDto implementCrossTempExtractAndIntegrateDatas(BffImplementCrossTempExtractAndIntegrateDatasReqDto reqDto) {


        //步骤0: D4执行跨模板提取并整合标准数据(公共) - implementCrossTempExtractAndIntegrateDatasCom
        ImplementCrossTempExtractAndIntegrateDatasComRespDto implementCrossTempExtractAndIntegrateDatasComRespDto = null;
        ImplementCrossTempExtractAndIntegrateDatasComReqDto implementCrossTempExtractAndIntegrateDatasComReqDto = new ImplementCrossTempExtractAndIntegrateDatasComReqDto();
        implementCrossTempExtractAndIntegrateDatasComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1991402_1
        if (reqDto != null) {
            implementCrossTempExtractAndIntegrateDatasComReqDto.setDataBelongSubjectType(reqDto.getDataBelongSubjectType());//SimpleFieldAssign//sourceId:1991398_1
            implementCrossTempExtractAndIntegrateDatasComReqDto.setDataBelongSubjectId(reqDto.getDataBelongSubjectId());//SimpleFieldAssign//sourceId:1991399_1
            implementCrossTempExtractAndIntegrateDatasComReqDto.setDataBelongSubjectName(reqDto.getDataBelongSubjectName());//SimpleFieldAssign//sourceId:1991400_1
            implementCrossTempExtractAndIntegrateDatasComReqDto.setIntegrateThemeId(reqDto.getIntegrateThemeId());//SimpleFieldAssign//sourceId:1991401_1
        }

        /*D4执行跨模板提取并整合标准数据(公共)[10200]   */
        Assert.isNull(implementCrossTempExtractAndIntegrateDatasComReqDto.getDataBelongSubjectType(), "B4执行跨模板提取并整合标准数据-D4执行跨模板提取并整合标准数据(公共)-数据归属主体类型编码不能为空", false);
        Assert.isNull(implementCrossTempExtractAndIntegrateDatasComReqDto.getDataBelongSubjectId(), "B4执行跨模板提取并整合标准数据-D4执行跨模板提取并整合标准数据(公共)-数据归属主体ID不能为空", false);
        Assert.isNull(implementCrossTempExtractAndIntegrateDatasComReqDto.getDataBelongSubjectName(), "B4执行跨模板提取并整合标准数据-D4执行跨模板提取并整合标准数据(公共)-数据归属主体名称不能为空", false);
        Assert.isNull(implementCrossTempExtractAndIntegrateDatasComReqDto.getIntegrateThemeId(), "B4执行跨模板提取并整合标准数据-D4执行跨模板提取并整合标准数据(公共)-整合主题ID不能为空", false);
        Assert.isNull(implementCrossTempExtractAndIntegrateDatasComReqDto.getSpaceId(), "B4执行跨模板提取并整合标准数据-D4执行跨模板提取并整合标准数据(公共)-创建于空间ID不能为空", false);
        implementCrossTempExtractAndIntegrateDatasComRespDto = fwCalcCrossTempIntegrateClient.implementCrossTempExtractAndIntegrateDatasCom(implementCrossTempExtractAndIntegrateDatasComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


        BffImplementCrossTempExtractAndIntegrateDatasRespDto retData = new BffImplementCrossTempExtractAndIntegrateDatasRespDto();


        return retData;
    }

    /**
     * B4新增主题跨评价模板范围(管理)[10125]
     * gen by moon at 9/18/2024, 7:44:30 PM
     */
    @Trace(operationName = "B4新增主题跨评价模板范围(管理)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffAddThemeEvaluationCrossRespDto addThemeEvaluationCross(BffAddThemeEvaluationCrossReqDto reqDto) {


        AddThemeEvaluationCrossComRespDto addThemeEvaluationCrossComRespDto_1 = null;
//步骤0: D4新增主题跨评价模板范围(公共) - addThemeEvaluationCrossCom
        AddThemeEvaluationCrossComRespDto addThemeEvaluationCrossComRespDto = null;
        AddThemeEvaluationCrossComReqDto addThemeEvaluationCrossComReqDto = new AddThemeEvaluationCrossComReqDto();
        if (reqDto != null) {
            addThemeEvaluationCrossComReqDto.setEvaTempId(reqDto.getEvaTempId());//SimpleFieldAssign//sourceId:1979775_1
            addThemeEvaluationCrossComReqDto.setIntegrateThemeId(reqDto.getIntegrateThemeId());//SimpleFieldAssign//sourceId:1979776_1
            addThemeEvaluationCrossComReqDto.setDataBelongSubjectType(reqDto.getDataBelongSubjectType());//SimpleFieldAssign//sourceId:1986325_1
            addThemeEvaluationCrossComReqDto.setIsShow(reqDto.getIsShow());//SimpleFieldAssign//sourceId:1979777_1
            addThemeEvaluationCrossComReqDto.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1979778_1
        }

        /*D4新增主题跨评价模板范围(公共)[10122]   */
        Assert.isNull(addThemeEvaluationCrossComReqDto.getEvaTempId(), "B4新增主题跨评价模板范围(管理)-D4新增主题跨评价模板范围(公共)-评价模板ID不能为空", false);
        Assert.isNull(addThemeEvaluationCrossComReqDto.getIntegrateThemeId(), "B4新增主题跨评价模板范围(管理)-D4新增主题跨评价模板范围(公共)-关联整合主题ID不能为空", false);
        Assert.isNull(addThemeEvaluationCrossComReqDto.getDataBelongSubjectType(), "B4新增主题跨评价模板范围(管理)-D4新增主题跨评价模板范围(公共)-数据归属主体类型编码不能为空", false);
        Assert.isNull(addThemeEvaluationCrossComReqDto.getIsShow(), "B4新增主题跨评价模板范围(管理)-D4新增主题跨评价模板范围(公共)-是否展示不能为空", false);
        Assert.isNull(addThemeEvaluationCrossComReqDto.getSubjectLifeCycle(), "B4新增主题跨评价模板范围(管理)-D4新增主题跨评价模板范围(公共)-主体生命周期不能为空", false);
        addThemeEvaluationCrossComRespDto = fwCalcCrossTempIntegrateClient.addThemeEvaluationCrossCom(addThemeEvaluationCrossComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


        addThemeEvaluationCrossComRespDto_1 = addThemeEvaluationCrossComRespDto;

        BffAddThemeEvaluationCrossRespDto retData = new BffAddThemeEvaluationCrossRespDto();
        if (addThemeEvaluationCrossComRespDto_1 != null) {
            retData.setThemeEvaTempId(addThemeEvaluationCrossComRespDto_1.getThemeEvaTempId());//SimpleFieldAssign//sourceId:1979784_1
        }


        return retData;
    }

    /**
     * B4修改主题跨评价模板范围(管理)[10126]
     * gen by moon at 9/18/2024, 7:44:37 PM
     */
    @Trace(operationName = "B4修改主题跨评价模板范围(管理)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffUpdateThemeEvaluationCrossRespDto updateThemeEvaluationCross(BffUpdateThemeEvaluationCrossReqDto reqDto) {


        //步骤0: D4修改主题跨评价模板范围(公共) - updateThemeEvaluationCrossCom
        UpdateThemeEvaluationCrossComRespDto updateThemeEvaluationCrossComRespDto = null;
        UpdateThemeEvaluationCrossComReqDto updateThemeEvaluationCrossComReqDto = new UpdateThemeEvaluationCrossComReqDto();
        if (reqDto != null) {
            updateThemeEvaluationCrossComReqDto.setThemeEvaTempId(reqDto.getThemeEvaTempId());//SimpleFieldAssign//sourceId:1979815_1
            updateThemeEvaluationCrossComReqDto.setIsShow(reqDto.getIsShow());//SimpleFieldAssign//sourceId:1979816_1
            updateThemeEvaluationCrossComReqDto.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1979817_1
            updateThemeEvaluationCrossComReqDto.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:1979818_1
        }

        /*D4修改主题跨评价模板范围(公共)[10123]   */
        Assert.isNull(updateThemeEvaluationCrossComReqDto.getThemeEvaTempId(), "B4修改主题跨评价模板范围(管理)-D4修改主题跨评价模板范围(公共)-主题整合评价模板ID不能为空", false);
        updateThemeEvaluationCrossComRespDto = fwCalcCrossTempIntegrateClient.updateThemeEvaluationCrossCom(updateThemeEvaluationCrossComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


        BffUpdateThemeEvaluationCrossRespDto retData = new BffUpdateThemeEvaluationCrossRespDto();


        return retData;
    }

    /**
     * B4查询主题跨评价模板范围列表(管理)[10128]
     * gen by moon at 9/18/2024, 7:44:49 PM
     */
    @Trace(operationName = "B4查询主题跨评价模板范围列表(管理)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Override
    public BffQueryThemeEvaluationCrossListRespDto queryThemeEvaluationCrossList(BffQueryThemeEvaluationCrossListReqDto reqDto) {


        QueryThemeEvaluationCrossListComRespDto queryThemeEvaluationCrossListComRespDto_1 = null;
//步骤0: D4查询主题跨评价模板范围列表(公共) - queryThemeEvaluationCrossListCom
        QueryThemeEvaluationCrossListComRespDto queryThemeEvaluationCrossListComRespDto = null;
        QueryThemeEvaluationCrossListComReqDto queryThemeEvaluationCrossListComReqDto = new QueryThemeEvaluationCrossListComReqDto();
        queryThemeEvaluationCrossListComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:1979857_1
        queryThemeEvaluationCrossListComReqDto.setIsArchive("FALSE");//sourceId:1979858_1
        if (reqDto != null) {
            queryThemeEvaluationCrossListComReqDto.setThemeEvaTempId(reqDto.getThemeEvaTempId());//SimpleFieldAssign//sourceId:1979854_1
            queryThemeEvaluationCrossListComReqDto.setIntegrateThemeId(reqDto.getIntegrateThemeId());//SimpleFieldAssign//sourceId:1979855_1
            queryThemeEvaluationCrossListComReqDto.setIsShow(reqDto.getIsShow());//SimpleFieldAssign//sourceId:1979856_1
            queryThemeEvaluationCrossListComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1979859_1
        }

        /*D4查询主题跨评价模板范围列表(公共)[10124]   */
        Assert.isNull(queryThemeEvaluationCrossListComReqDto.getSubjectLifeCycle(), "B4查询主题跨评价模板范围列表(管理)-D4查询主题跨评价模板范围列表(公共)-主体生命周期不能为空", false);
        Assert.isNull(queryThemeEvaluationCrossListComReqDto.getIsArchive(), "B4查询主题跨评价模板范围列表(管理)-D4查询主题跨评价模板范围列表(公共)-是否存档不能为空", false);
        queryThemeEvaluationCrossListComRespDto = fwCalcCrossTempIntegrateClient.queryThemeEvaluationCrossListCom(queryThemeEvaluationCrossListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


        queryThemeEvaluationCrossListComRespDto_1 = queryThemeEvaluationCrossListComRespDto;

        BffQueryThemeEvaluationCrossListRespDto retData = new BffQueryThemeEvaluationCrossListRespDto();
        if (queryThemeEvaluationCrossListComRespDto_1 != null) {
            retData.setThemeEvaluationCrossList(queryThemeEvaluationCrossListComRespDto_1.getThemeEvaluationCrossList().stream().map(item -> BeanUtil.toBean(item, BffThemeEvaluationCrossDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1979865_1
        }


        return retData;
    }
    //
}
